<?php

class User extends Zend_Db_Table {
    
    protected $_name = 'user';
    
   
    /**
     * Check if value is unique in the column
     *
     * @param string $column
     * @param string $value
     * @return boolean
     */
    public function checkUnique($column, $value){
        
        $row = $this->fetchRow("$column = '$value'");
        if(!$row)
        return true;
        else
        return false;
        
    }
}
